#!/bin/sh

if [ -f $2 ]
then
	FileTran.sh $1 $2 $3 0 0 >$1_$4
	retcode=`grep  "error" $1_$4`
	if [ "$retcode"x = ""x ]
	then
		echo "$2 `date`" >>tran_suc.log
	else
		echo "error happened !!"
		cat $1_$4 >>tran_err.log
	fi
	rm $1_$4
else
	echo "can't find file: $2 !!" >>tran_err
fi
